package com.his.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * (Operation)实体类
 *
 * @author makejava
 * @since 2020-10-23 18:13:46
 */
@Data
public class Operation implements Serializable {
    private static final long serialVersionUID = -39757402510897186L;

    private Integer id;
    /**
     * 病人id
     */
    private Integer patientId;
    /**
     * 主刀医生
     */
    private Integer doctorId;
    /**
     * 主刀确认 0-未确认 1-已确认
     */
    private String doctorSure;
    /**
     * 通知时间
     */
    private Date noticeTime;
    /**
     * 手术开始时间
     */
    private Date actionTime;
    /**
     *  手术内容
     */
    private String operationContent;
    /**
     * 手术费用
     */
    private Double operationCost;
    /**
     * 家属同意 0-未确认 1-已确认
     */
    private String familyAgree;
    /**
     * 手术结果
     */
    private String operationResult;
    /**
     * 创建id
     */
    private Integer createId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改id
     */
    private Integer updateId;
    /**
     * 修改时间
     */
    private Date updateTime;
    /**
     * 状态 0-初始化 1-已结束
     */
    private String status;

    //连接查询属性
    /**
     * 病人对象
     */
    private String patient;

    /**
     * 医生对象
     */
    private String doctor;

    @Override
    public String toString() {
        return "Operation{" +
                "id=" + id +
                ", patientId=" + patientId +
                ", doctorId=" + doctorId +
                ", doctorSure='" + doctorSure + '\'' +
                ", noticeTime=" + noticeTime +
                ", actionTime=" + actionTime +
                ", operationContent='" + operationContent + '\'' +
                ", operationCost=" + operationCost +
                ", familyAgree='" + familyAgree + '\'' +
                ", operationResult='" + operationResult + '\'' +
                ", createId=" + createId +
                ", createTime=" + createTime +
                ", updateId=" + updateId +
                ", updateTime=" + updateTime +
                ", status='" + status + '\'' +
                ", patient='" + patient + '\'' +
                ", doctor='" + doctor + '\'' +
                '}';
    }
}
